<%@ page import="com.actimind.actitime.util.Capsule,
                 java.util.Date,
                 java.sql.ResultSet,
                 java.sql.SQLException"
%><%
    Capsule cap = null;
    try
    {
        cap = new Capsule(null, "select 1");
        ResultSet rs = cap.ps().executeQuery();
        if(!rs.next() || rs.getInt(1) != 1)
            throw new SQLException("expected one row that contains '1'");
        out.println("<html><!-- TIME " + new Date() + " --></html>");
    }
    catch(SQLException ex)
    {
        if(cap != null)
            cap.cleanup();
        response.sendError(404);
    }
%>